package com.chunfeng.mypen;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.ApplicationContext;

/**
 * 全局启动类
 *
 * @author by 春风能解释
 * <p>
 * 2023/11/14
 */
@SpringBootApplication
@EnableConfigurationProperties
@Slf4j
public class MyPenApplication {

    /**
     * 全局启动方法
     *
     * @param args 参数
     */
    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(MyPenApplication.class, args);
        log.info("MyPen后端服务器:{}已成功启动!", app.getDisplayName());
    }

}
